package com.jgk.gwt.recipes.contacts.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class EditContactEvent extends GwtEvent<EditContactEventHandler> {
	public static com.google.gwt.event.shared.GwtEvent.Type<EditContactEventHandler> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<EditContactEventHandler>();

	private final String id;

	public EditContactEvent(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EditContactEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditContactEventHandler handler) {
		handler.onEditContact(this);

	}

}
